define(function(require){
	var main = require('/static/main.js');
	var m = new main();
	function Cont(){
		this.Fun._init();
	}
	Cont.prototype.Fun = {
		_init:function(){
			this.bindEvent();
		},
		bindEvent:function(){
            $('.suggest-btn').click(function(){
                var JsonData = {
                    Content : $.trim($(".suggest-input").val()),
                }
                if(JsonData.Content == ''){
                    layer.msg('内容不能为空！');
                    return false;
                }
                m.ajax(m.baseUrl+'/site/createsu',JsonData,function(ret) {
                    if(ret.IsBizSuccess){
                        layer.msg('十分感谢您的建议！');
                        return false;
                    }else{
                        layer.msg(ret.ErrMsg);
                    }
                });
            });
		}


	}
	var a = new Cont();

})